﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using DotNetNuke.Modules.DNNPagination.Data;

namespace DotNetNuke.Modules.DNNPagination.Components
{
    public class cContentController
    {
        public static IDataReader getHtmlText(int moduleId)
        {
            return DataProvider.Instance().getHtmlText(moduleId);
        }

        public static IDataReader getContent(int moduleId)
        {
            return DataProvider.Instance().getContent(moduleId);
        }

        public static IDataReader getContentById(int itemId)
        {
            return DataProvider.Instance().getContentById(itemId);
        }

        public static int addContent(cContent o)
        {
            return Convert.ToInt32(DataProvider.Instance().addContent(o));
        }

        public static void updateContent(cContent o)
        {
            DataProvider.Instance().updateContent(o);
        }

        public static void deleteContent(int contentId)
        {
            DataProvider.Instance().deleteContent(contentId);
        }
    }
}